home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’96 / O Boy / Source / O Boy.h < prev    next >
Encoding:
Text File  |  1996-06-21  |  1.3 KB  |  58 lines  |  [TEXT/R*ch]

  1. // main file ... from the C.Spathis Shell (ty Gus)
  2. //
  3. #pragma once
  4. #ifdef __MAIN__
  5. #    define GLOBAL    
  6. #else
  7. #    define GLOBAL    extern
  8. #endif
  9.  
  10. #ifndef CSHELL_H
  11. #define CSHELL_H
  12. #include <AppleEvents.h>
  13. #include <Quickdraw.h>
  14. #include <QDOffscreen.h>
  15. #include <timer.h>
  16. #include "ComputerAEObj_pd.h"
  17.  
  18. #define MAIN_MENU_BAR    128
  19.  
  20. #define APPLE_MENU        128
  21. #define FILE_MENU        129
  22. #    define NEW_ITEM        1
  23. #     define QUIT_ITEM    3
  24. #define EDIT_MENU        130
  25. #    define CUT_ITEM        1
  26. #    define COPY_ITEM    2
  27. #    define PASTE_ITEM    3
  28.  
  29. #define INSTALL_TIMETASKS    1
  30. #define REMOVE_TIMETASKS     0
  31. typedef EventRecord* EventPtr;
  32.  
  33. typedef struct{
  34.     FSSpec        theSpec;
  35.     FInfo        FinderInfo;
  36.     GWorldPtr    offscreenImage;
  37. }WinInfo,**WinInfoHandle;
  38.  
  39. GLOBAL    AEObj_pd *            gRootObj;
  40.  
  41. GLOBAL    Boolean             bHaveWaitNextEvent;        // WaitNextEvent is available
  42. GLOBAL    long                 sleepTime;
  43. GLOBAL    AEDesc                gNullDesc;                // A null descriptor record
  44. GLOBAL    AEAddressDesc        gSelfAddress;            // A self-addressed address descriptor record
  45. GLOBAL    ProcessSerialNumber    gSelfPSN;                // This application's psn
  46. GLOBAL    short                gRefNum;                // reference number of rescource file
  47. GLOBAL    Boolean                Draggable;                // Is the Drag Manager Installed?
  48.  
  49. // Functions that are global in scope
  50.  
  51. Boolean DoEvents(void);
  52. void EventInit(void);
  53. void QuitApp(void);
  54. Boolean GetQuitStatus();
  55. Boolean InitAppleEvents(void);
  56. void ExitApp(void);
  57. #endif
  58.